package struts.action;

import java.io.IOException;

import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import bisness.PandAction;
//import service.vo.MessageVO;

public class ActionServlet extends HttpServlet{

	private static final long serialVersionUID = 7320431028733786256L;
	
	public void doGet(HttpServletRequest request,HttpServletResponse response)
	throws IOException,ServletException{
		String url = "";
		Action action = new PandAction();
		url = action.execute(request);
		RequestDispatcher dis = request.getRequestDispatcher(url);
		dis.forward(request, response);

	}
	
	public void doPost(HttpServletRequest request,HttpServletResponse response)
	throws IOException,ServletException{
		this.doGet(request, response);
	}
}
